﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"
    namespace="Guoc.DAL.Domain" assembly="Guoc.DAL">

  <class name="Employee" table="sys_Employee">
    <id name="ID">
      <column name="EmployeeID" sql-type="char(32)" not-null="true"/>
      <generator class ="uuid.hex"/>
      <!--支持自动增长-->
    </id>

    <property name="LoginName" />
    <property name="LoginPwd" />
    <property name="RealName" />
    <property name="State" />
    <property name="CreateTime" />
    <property name="LastLoginDate" />
    <property name="LastLoginIP" />
    <property name="ErrorCount" />
    <property name="IsDelete" />

    <one-to-one name="MyRole" class="Role" ></one-to-one>
    
  </class>

</hibernate-mapping>
